package cn.ad.server.web.spring.model;

import java.util.HashMap;
import java.util.Map;


/**
 * 转发类型。
 * @author wangwei
 *
 */
public enum TrafficEventType {
	/**
	 * 101   补量请求
	 * 102 GDT广告位请求
	 */
	TRAFFIBOOST(101, "TRAFFIBOOST"), TRAFFICGDT(102, "TRAFFICGDT");

	private Integer value;
	private String name;

	public final static Map<Integer, String> trafficEventTypeMap = new HashMap<>();

	static {
		for (TrafficEventType exchange : values()) {
			trafficEventTypeMap.put(exchange.value, exchange.name);
		}
	}

	TrafficEventType(Integer value, String name) {
		this.value = value;
		this.name = name;
	}

	public Integer getValue() {
		return value;
	}

	public String getName() {
		return name;
	}
}
